package com.sky.myapplication.java.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import androidx.annotation.Nullable;

/**
 * Created by Min
 * Time 2021/6/19
 * Desc 主Service 具体介绍：https://www.jianshu.com/p/738105190328
 */
public class MainService extends Service {
    public static final String LOG_TAG = "MainService";

    @Override
    public void onCreate() {
        super.onCreate();
        Log.e(LOG_TAG, "Service onCreate");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e(LOG_TAG, "Service onDestroy");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.e(LOG_TAG, "Service onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        Log.e(LOG_TAG, "Service onBind");
        return null;
    }

    @Override
    public boolean onUnbind(Intent intent) {
        Log.e(LOG_TAG, "Service onUnbind");
        return super.onUnbind(intent);
    }

    @Override
    public void onRebind(Intent intent) {
        Log.e(LOG_TAG, "Service onRebind");
        super.onRebind(intent);


    }
}
